From 7beb0a2feb28edd96fa055b28752ebe948106c4d Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 3 Feb 2009 18:13:22 +0000 Subject: [PATCH] cpufreq: attach __exit to the (unused) cpufreq governor exit handlers ... in order to make them disappear from the final image. Of course they could as well be removed altogether, but I assumed that whoever added them had a reason to do so. Signed-off-by: Jan Beulich --- xen/drivers/cpufreq/cpufreq_misc_governors.c | 6 +++--- xen/drivers/cpufreq/cpufreq_ondemand.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/xen/drivers/cpufreq/cpufreq_misc_governors.c b/xen/drivers/cpufreq/cpufreq_misc_governors.c index 8b391d39f8..fb21767216 100644 --- a/xen/drivers/cpufreq/cpufreq_misc_governors.c +++ b/xen/drivers/cpufreq/cpufreq_misc_governors.c @@ -61,7 +61,7 @@ static int __init cpufreq_gov_userspace_init(void) } __initcall(cpufreq_gov_userspace_init); -static void cpufreq_gov_userspace_exit(void) +static void __exit cpufreq_gov_userspace_exit(void) { cpufreq_unregister_governor(&cpufreq_gov_userspace); } @@ -106,7 +106,7 @@ static int __init cpufreq_gov_performance_init(void) } __initcall(cpufreq_gov_performance_init); -static void cpufreq_gov_performance_exit(void) +static void __exit cpufreq_gov_performance_exit(void) { cpufreq_unregister_governor(&cpufreq_gov_performance); } @@ -151,7 +151,7 @@ static int __init cpufreq_gov_powersave_init(void) } __initcall(cpufreq_gov_powersave_init); -static void cpufreq_gov_powersave_exit(void) +static void __exit cpufreq_gov_powersave_exit(void) { cpufreq_unregister_governor(&cpufreq_gov_powersave); } diff --git a/xen/drivers/cpufreq/cpufreq_ondemand.c b/xen/drivers/cpufreq/cpufreq_ondemand.c index 609540e477..073d7eb37d 100644 --- a/xen/drivers/cpufreq/cpufreq_ondemand.c +++ b/xen/drivers/cpufreq/cpufreq_ondemand.c @@ -333,7 +333,7 @@ static int __init cpufreq_gov_dbs_init(void) } __initcall(cpufreq_gov_dbs_init); -static void cpufreq_gov_dbs_exit(void) +static void __exit cpufreq_gov_dbs_exit(void) { cpufreq_unregister_governor(&cpufreq_gov_dbs); } -- 2.30.2